package com.eventapp.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.eventapp.type.TypeAssistance;


@Entity
@Table(name="invitations")
@Access(AccessType.FIELD)
public class Invitation  extends BaseObject implements Serializable
{
   private static final long serialVersionUID = 1L;

   @Id
   @GeneratedValue
   private Long id;
   @ManyToOne
   private User member;
   @Enumerated(EnumType.STRING) 
   private TypeAssistance assistance;  
   private Date date;
   
   
 
@Override
public boolean equals(Object o) {
	// TODO Auto-generated method stub
	return false;
}

public TypeAssistance getAssistance() {
	return assistance;
}

public Date getDate() {
	return date;
}

public Long getId() {
	return id;
}

public User getMember() {
	return member;
}

@Override
public int hashCode() {
	// TODO Auto-generated method stub
	return 0;
}

public void setAssistance(TypeAssistance assistance) {
	this.assistance = assistance;
}

public void setDate(Date date) {
	this.date = date;
}

public void setId(Long id) {
	this.id = id;
}

public void setMember(User member) {
	this.member = member;
}

@Override
public String toString() {
	// TODO Auto-generated method stub
	return null;
}



}